import "./assets/main.css";

import { createApp } from "vue";
// 引入element-plus
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
// 引入element-plus图标
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import App from "./App.vue";
import router from "./router/index";
// 引入pinia
import { createPinia } from "pinia";
// 实例化pinia
const pinia = createPinia();

const app = createApp(App);
app.use(createPinia());
app.use(router).use(ElementPlus).use(pinia);
app.mount("#app");
// 全局注册组件
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}


